/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use '@angular/material' as mat;

.drawer-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  @include mat.button-overrides(
    (
      filled-container-color: var(--side-panel-button-filled-container-color),
      filled-label-text-color: var(--side-panel-button-filled-label-text-color),
    )
  );

  .mat-icon {
    width: 36px;
    height: 36px;
    color: var(--side-panel-mat-icon-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.tabs-container {
  width: 100%;
  margin-top: 20px;
}

.tab-label {
  font-size: 14px;
}
.resize-handler {
  background: var(--side-panel-resize-handler-background-color);
  width: 4px;
  border-radius: 4px;
  position: absolute;
  display: block;
  height: 20%;
  top: 40%;
  right: 0;
  z-index: 9999;
  cursor: ew-resize;
}
.json-viewer-container {
  margin: 10px;
}

.event-paginator {
  margin-top: -8px;
  margin-right: auto;
  background-color: inherit;
  display: flex;
  justify-content: center;
}

:host ::ng-deep .mat-mdc-paginator-page-size {
  display: none;
}

.details-panel-container {
  position: absolute;
  width: 100%;
  height: 98%;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--side-panel-details-panel-container-background-color);
  display: inline-block;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.details-content {
  color: var(--side-panel-details-content-color);
  font-size: 14px;
}
.event-graph-container {
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  max-height: 33%;
  cursor: pointer;
}

.event-graph-container ::ng-deep svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.event-graph-container ::ng-deep svg text {
  font-family: 'Google Sans Mono', monospace;
  font-size: 11px;
}
.drawer-logo {
  margin-left: 9px;
  display: flex;
  align-items: center;

  img {
    margin-right: 9px;
  }

  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.1px;
}

.powered-by-adk {
  font-size: 10px;
  color: var(--side-panel-powered-by-adk-color);
  text-align: right;
  margin-top: -5px;
}

.app-select {
  width: 100%;
}

.app-select-container {
  width: 35%;
  margin-top: 12px;
  background-color: var(--side-panel-app-select-container-background-color);
  margin-left: 10px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 10px;
  padding-top: 5px;
}

.app-select-container {
  @include mat.select-overrides(
    (
      placeholder-text-color: var(--side-panel-select-placeholder-text-color),
      enabled-trigger-text-color:
        var(--side-panel-select-enabled-trigger-text-color),
      enabled-arrow-color: var(--side-panel-select-enabled-arrow-color),
    )
  );
}

.app-name-option {
  color: var(--side-panel-app-name-option-color);
  font-family: 'Google Sans Mono', monospace;
  font-style: normal;
  font-weight: 400;
  padding-left: 12px;
  padding-right: 12px;
}

.app-select {
  color: var(--side-panel-app-name-option-color);
  font-family: 'Google Sans Mono', monospace;
  font-style: normal;
  font-weight: 400;
  padding-left: unset;
}

.mode-toggle-container {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.build-mode-button {
  margin: 0 4px;
  &.mat-mdc-unelevated-button {
    height: 30px;
  }
}

.app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  margin-left: 10px;
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.request-response-loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
}

.request-response-empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2em;
  font-style: italic;
}

:host ::ng-deep .mat-mdc-tooltip .mdc-tooltip__surface {
  max-width: 250px;
  white-space: wrap;
  font-size: 11px;
}
